﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hyunhdai_Saigon_Project.uc
{
    public partial class uc_admin_timkiem : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void DangXuat_Click(object sender, EventArgs e)
        {
            Session.RemoveAll();
            Response.Redirect("Default.aspx");
        }

        protected void XacNhan_Click(object sender, EventArgs e)
        {
            string insx = nsx.SelectedValue;
            string idx = dongxe.SelectedValue;
            string strdx = dx.SelectedValue;
            strdx = isNull(strdx);
            string strnt = nt.Text;
            strnt = isNull(strnt);
            string strsc = sc.Text;
            strsc = isNull(strsc);
            string strscn = scn.Text;
            strscn = isNull(strscn);
            string strhs = hs.Text;
            strhs = isNull(strhs);
            string strnl = nl.Text;
            strnl = isNull(strnl);
            string strhttl = htnl.Text;
            strhttl = isNull(strhttl);
            //Response.Redirect("admin2.aspx?nsx=" + insx.ToString() + "&dgx=" + idx.ToString() + "&dx=" + strdx + "&nt=" + strnt + "&sc=" + strsc + "&scn=" + strscn + "&hs=" + strhs + "&nl=" + strnl + "&htnl=" + strhttl);
            Response.Redirect("www.google.com");
        }

        protected String isNull(String s)
        {
            if(s.Equals(""))
                return "none";
            else
                return s;
        }

    }
}